import request from '@/utils/service'

export default {
  // 查看不同月份的用户账单
  async getAll(data) {
    return await request({
      url: '/api/bills/getAll',
      method: 'get',
      params: data
    })
  },

  // 开通缴费生成订单
  async postOrder(data) {
    return await request({
      url: '/api/bills/post',
      method: 'post',
      params: data
    })
  },

  // 修改缴费状态
  async changeState(data) {
    return await request({
      url: `/api/bills/changeState/${data._id}`,
      method: 'get',
      params: data
    })
  }

  // 根据用户的姓名查询缴费订单

}
